package com.t.bricks.bussiness.db.entity.orderscomment.base;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.t.bricks.annotation.DataInfo;

/**
 * 订单评论'OrdersComment'表实体类
 * 警告:非数据库字段禁止在此添加,应该创建扩展实体中添加
 * @author HuangXinBian
 */
@ApiModel("订单评论OrdersComment")
@DataInfo(sDbName="BricksMall", sTableName="OrdersComment")
public class OrdersCommentBase implements Serializable {

	private static final long serialVersionUID = 1L;// 使用rmi时需修改

	/**
	 * 记录编号
	 */
	//[start]
	@DataInfo( sDbName="BricksMall", sTableName="OrdersComment",
		sName="uId", sComment="记录编号", isDbField=true, sDbFileType="varchar",
		sDefaultData="", isExtra=false, iskey=true, isNull=false,
		iMaxLength=32, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=0 )
	@ApiModelProperty(value="记录编号", example="", position=0)
	//[end]
	protected String uId;

	/**
	 * 订单编号
	 */
	//[start]
	@DataInfo( sDbName="BricksMall", sTableName="OrdersComment",
		sName="sOrderId", sComment="订单编号", isDbField=true, sDbFileType="varchar",
		sDefaultData="", isExtra=false, iskey=false, isNull=false,
		iMaxLength=10, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=1 )
	@ApiModelProperty(value="订单编号", example="", position=1)
	//[end]
	protected String sOrderId;

	/**
	 * 商品条码
	 */
	//[start]
	@DataInfo( sDbName="BricksMall", sTableName="OrdersComment",
		sName="sWaresId", sComment="商品条码", isDbField=true, sDbFileType="varchar",
		sDefaultData="", isExtra=false, iskey=false, isNull=false,
		iMaxLength=32, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=2 )
	@ApiModelProperty(value="商品条码", example="", position=2)
	//[end]
	protected String sWaresId;

	/**
	 * 顾客别名
	 */
	//[start]
	@DataInfo( sDbName="BricksMall", sTableName="OrdersComment",
		sName="sCustomerAliases", sComment="顾客别名", isDbField=true, sDbFileType="varchar",
		sDefaultData="", isExtra=false, iskey=false, isNull=false,
		iMaxLength=50, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=3 )
	@ApiModelProperty(value="顾客别名", example="", position=3)
	//[end]
	protected String sCustomerAliases;

	/**
	 * 顾客头像
	 */
	//[start]
	@DataInfo( sDbName="BricksMall", sTableName="OrdersComment",
		sName="sCustomerPhoto", sComment="顾客头像", isDbField=true, sDbFileType="varchar",
		sDefaultData="", isExtra=false, iskey=false, isNull=true,
		iMaxLength=50, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=4 )
	@ApiModelProperty(value="顾客头像", example="", position=4)
	//[end]
	protected String sCustomerPhoto;

	/**
	 * 评分
	 */
	//[start]
	@DataInfo( sDbName="BricksMall", sTableName="OrdersComment",
		sName="iGrade", sComment="评分", isDbField=true, sDbFileType="int",
		sDefaultData="0", isExtra=false, iskey=false, isNull=false,
		iMaxLength=100, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=5 )
	@ApiModelProperty(value="评分", example="0", position=5)
	//[end]
	protected Integer iGrade;

	/**
	 * 评论
	 */
	//[start]
	@DataInfo( sDbName="BricksMall", sTableName="OrdersComment",
		sName="sComment", sComment="评论", isDbField=true, sDbFileType="longtext",
		sDefaultData="", isExtra=false, iskey=false, isNull=false,
		iMaxLength=100, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=6 )
	@ApiModelProperty(value="评论", example="", position=6)
	//[end]
	protected String sComment;

	/**
	 * 评论图片
	 */
	//[start]
	@DataInfo( sDbName="BricksMall", sTableName="OrdersComment",
		sName="sCommentImgs", sComment="评论图片", isDbField=true, sDbFileType="longtext",
		sDefaultData="", isExtra=false, iskey=false, isNull=true,
		iMaxLength=100, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=7 )
	@ApiModelProperty(value="评论图片", example="", position=7)
	//[end]
	protected String sCommentImgs;

	/**
	 * 审核人编号
	 */
	//[start]
	@DataInfo( sDbName="BricksMall", sTableName="OrdersComment",
		sName="sAuditId", sComment="审核人编号", isDbField=true, sDbFileType="varchar",
		sDefaultData="", isExtra=false, iskey=false, isNull=true,
		iMaxLength=8, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=8 )
	@ApiModelProperty(value="审核人编号", example="", position=8)
	//[end]
	protected String sAuditId;

	/**
	 * 审核人
	 */
	//[start]
	@DataInfo( sDbName="BricksMall", sTableName="OrdersComment",
		sName="sAudit", sComment="审核人", isDbField=true, sDbFileType="varchar",
		sDefaultData="", isExtra=false, iskey=false, isNull=true,
		iMaxLength=32, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=9 )
	@ApiModelProperty(value="审核人", example="", position=9)
	//[end]
	protected String sAudit;

	/**
	 * 审核时间
	 */
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")//解决表单提交时字符串时间值错误
	//[start]
	@DataInfo( sDbName="BricksMall", sTableName="OrdersComment",
		sName="dAuditDate", sComment="审核时间", isDbField=true, sDbFileType="datetime",
		sDefaultData="", isExtra=false, iskey=false, isNull=true,
		iMaxLength=23, isDecimal=false, iIntegralLength=-1, iDecimalLength=-1, iIndex=10 )
	@ApiModelProperty(value="审核时间", example="", position=10)
	//[end]
	protected Date dAuditDate;

	/**
	 * 备注
	 */
	//[start]
	@DataInfo( sDbName="BricksMall", sTableName="OrdersComment",
		sName="sMemo", sComment="备注", isDbField=true, sDbFileType="varchar",
		sDefaultData="", isExtra=false, iskey=false, isNull=true,
		iMaxLength=200, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=11 )
	@ApiModelProperty(value="备注", example="", position=11)
	//[end]
	protected String sMemo;

	/**
	 * 创建者
	 */
	//[start]
	@DataInfo( sDbName="BricksMall", sTableName="OrdersComment",
		sName="sCreator", sComment="创建者", isDbField=true, sDbFileType="varchar",
		sDefaultData="0", isExtra=false, iskey=false, isNull=false,
		iMaxLength=32, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=12 )
	@ApiModelProperty(value="创建者", example="0", position=12)
	//[end]
	protected String sCreator;

	/**
	 * 创建时间
	 */
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")//解决表单提交时字符串时间值错误
	//[start]
	@DataInfo( sDbName="BricksMall", sTableName="OrdersComment",
		sName="dCreateDate", sComment="创建时间", isDbField=true, sDbFileType="datetime",
		sDefaultData="", isExtra=false, iskey=false, isNull=false,
		iMaxLength=23, isDecimal=false, iIntegralLength=-1, iDecimalLength=-1, iIndex=13 )
	@ApiModelProperty(value="创建时间", example="", position=13)
	//[end]
	protected Date dCreateDate;

	/**
	 * 修改人
	 */
	//[start]
	@DataInfo( sDbName="BricksMall", sTableName="OrdersComment",
		sName="sModifieder", sComment="修改人", isDbField=true, sDbFileType="varchar",
		sDefaultData="0", isExtra=false, iskey=false, isNull=false,
		iMaxLength=32, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=14 )
	@ApiModelProperty(value="修改人", example="0", position=14)
	//[end]
	protected String sModifieder;

	/**
	 * 修改时间
	 */
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")//解决表单提交时字符串时间值错误
	//[start]
	@DataInfo( sDbName="BricksMall", sTableName="OrdersComment",
		sName="dModifiedDate", sComment="修改时间", isDbField=true, sDbFileType="datetime",
		sDefaultData="", isExtra=false, iskey=false, isNull=false,
		iMaxLength=23, isDecimal=false, iIntegralLength=-1, iDecimalLength=-1, iIndex=15 )
	@ApiModelProperty(value="修改时间", example="", position=15)
	//[end]
	protected Date dModifiedDate;

	/**
	 * 状态
	 */
	//[start]
	@DataInfo( sDbName="BricksMall", sTableName="OrdersComment",
		sName="iState", sComment="状态", isDbField=true, sDbFileType="int",
		sDefaultData="1", isExtra=false, iskey=false, isNull=false,
		iMaxLength=100, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=16 )
	@ApiModelProperty(value="状态", example="1", position=16)
	//[end]
	protected Integer iState;

	/**
	 * 序号
	 */
	//[start]
	@DataInfo( sDbName="BricksMall", sTableName="OrdersComment",
		sName="iIndex", sComment="序号", isDbField=true, sDbFileType="int",
		sDefaultData="1", isExtra=false, iskey=false, isNull=false,
		iMaxLength=100, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=17 )
	@ApiModelProperty(value="序号", example="1", position=17)
	//[end]
	protected Integer iIndex;

	/**
	 * 版本号
	 */
	//[start]
	@DataInfo( sDbName="BricksMall", sTableName="OrdersComment",
		sName="iVersion", sComment="版本号", isDbField=true, sDbFileType="int",
		sDefaultData="1", isExtra=false, iskey=false, isNull=false,
		iMaxLength=100, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=18 )
	@ApiModelProperty(value="版本号", example="1", position=18)
	//[end]
	protected Integer iVersion;

	/**
	 * 取 记录编号
	 * @return String
	 */
	public String getuId() {
		return uId;
	}

	/**
	 * 设置记录编号
	 * @param uId
	 */
	public void setuId(String uId) {
		this.uId = uId;
	}

	/**
	 * 取 订单编号
	 * @return String
	 */
	public String getsOrderId() {
		return sOrderId;
	}

	/**
	 * 设置订单编号
	 * @param sOrderId
	 */
	public void setsOrderId(String sOrderId) {
		this.sOrderId = sOrderId;
	}

	/**
	 * 取 商品条码
	 * @return String
	 */
	public String getsWaresId() {
		return sWaresId;
	}

	/**
	 * 设置商品条码
	 * @param sWaresId
	 */
	public void setsWaresId(String sWaresId) {
		this.sWaresId = sWaresId;
	}

	/**
	 * 取 顾客别名
	 * @return String
	 */
	public String getsCustomerAliases() {
		return sCustomerAliases;
	}

	/**
	 * 设置顾客别名
	 * @param sCustomerAliases
	 */
	public void setsCustomerAliases(String sCustomerAliases) {
		this.sCustomerAliases = sCustomerAliases;
	}

	/**
	 * 取 顾客头像
	 * @return String
	 */
	public String getsCustomerPhoto() {
		return sCustomerPhoto;
	}

	/**
	 * 设置顾客头像
	 * @param sCustomerPhoto
	 */
	public void setsCustomerPhoto(String sCustomerPhoto) {
		this.sCustomerPhoto = sCustomerPhoto;
	}

	/**
	 * 取 评分
	 * @return Integer
	 */
	public Integer getiGrade() {
		return iGrade;
	}

	/**
	 * 设置评分
	 * @param iGrade
	 */
	public void setiGrade(Integer iGrade) {
		this.iGrade = iGrade;
	}

	/**
	 * 取 评论
	 * @return String
	 */
	public String getsComment() {
		return sComment;
	}

	/**
	 * 设置评论
	 * @param sComment
	 */
	public void setsComment(String sComment) {
		this.sComment = sComment;
	}

	/**
	 * 取 评论图片
	 * @return String
	 */
	public String getsCommentImgs() {
		return sCommentImgs;
	}

	/**
	 * 设置评论图片
	 * @param sCommentImgs
	 */
	public void setsCommentImgs(String sCommentImgs) {
		this.sCommentImgs = sCommentImgs;
	}

	/**
	 * 取 审核人编号
	 * @return String
	 */
	public String getsAuditId() {
		return sAuditId;
	}

	/**
	 * 设置审核人编号
	 * @param sAuditId
	 */
	public void setsAuditId(String sAuditId) {
		this.sAuditId = sAuditId;
	}

	/**
	 * 取 审核人
	 * @return String
	 */
	public String getsAudit() {
		return sAudit;
	}

	/**
	 * 设置审核人
	 * @param sAudit
	 */
	public void setsAudit(String sAudit) {
		this.sAudit = sAudit;
	}

	/**
	 * 取 审核时间
	 * @return Date
	 */
	public Date getdAuditDate() {
		return dAuditDate;
	}

	/**
	 * 设置审核时间
	 * @param dAuditDate
	 */
	public void setdAuditDate(Date dAuditDate) {
		this.dAuditDate = dAuditDate;
	}

	/**
	 * 取 备注
	 * @return String
	 */
	public String getsMemo() {
		return sMemo;
	}

	/**
	 * 设置备注
	 * @param sMemo
	 */
	public void setsMemo(String sMemo) {
		this.sMemo = sMemo;
	}

	/**
	 * 取 创建者
	 * @return String
	 */
	public String getsCreator() {
		return sCreator;
	}

	/**
	 * 设置创建者
	 * @param sCreator
	 */
	public void setsCreator(String sCreator) {
		this.sCreator = sCreator;
	}

	/**
	 * 取 创建时间
	 * @return Date
	 */
	public Date getdCreateDate() {
		return dCreateDate;
	}

	/**
	 * 设置创建时间
	 * @param dCreateDate
	 */
	public void setdCreateDate(Date dCreateDate) {
		this.dCreateDate = dCreateDate;
	}

	/**
	 * 取 修改人
	 * @return String
	 */
	public String getsModifieder() {
		return sModifieder;
	}

	/**
	 * 设置修改人
	 * @param sModifieder
	 */
	public void setsModifieder(String sModifieder) {
		this.sModifieder = sModifieder;
	}

	/**
	 * 取 修改时间
	 * @return Date
	 */
	public Date getdModifiedDate() {
		return dModifiedDate;
	}

	/**
	 * 设置修改时间
	 * @param dModifiedDate
	 */
	public void setdModifiedDate(Date dModifiedDate) {
		this.dModifiedDate = dModifiedDate;
	}

	/**
	 * 取 状态
	 * @return Integer
	 */
	public Integer getiState() {
		return iState;
	}

	/**
	 * 设置状态
	 * @param iState
	 */
	public void setiState(Integer iState) {
		this.iState = iState;
	}

	/**
	 * 取 序号
	 * @return Integer
	 */
	public Integer getiIndex() {
		return iIndex;
	}

	/**
	 * 设置序号
	 * @param iIndex
	 */
	public void setiIndex(Integer iIndex) {
		this.iIndex = iIndex;
	}

	/**
	 * 取 版本号
	 * @return Integer
	 */
	public Integer getiVersion() {
		return iVersion;
	}

	/**
	 * 设置版本号
	 * @param iVersion
	 */
	public void setiVersion(Integer iVersion) {
		this.iVersion = iVersion;
	}

	/**
	 * 复制对象
	 * @param source 数据源
	 * @return OrdersCommentBase
	 */
	public static OrdersCommentBase copy(OrdersCommentBase source) {
		if (null == source) {
			return null;
		}
		
		OrdersCommentBase target = new OrdersCommentBase();
		target.setuId(source.getuId());
		target.setsOrderId(source.getsOrderId());
		target.setsWaresId(source.getsWaresId());
		target.setsCustomerAliases(source.getsCustomerAliases());
		target.setsCustomerPhoto(source.getsCustomerPhoto());
		target.setiGrade(source.getiGrade());
		target.setsComment(source.getsComment());
		target.setsCommentImgs(source.getsCommentImgs());
		target.setsAuditId(source.getsAuditId());
		target.setsAudit(source.getsAudit());
		target.setdAuditDate(source.getdAuditDate());
		target.setsMemo(source.getsMemo());
		target.setsCreator(source.getsCreator());
		target.setdCreateDate(source.getdCreateDate());
		target.setsModifieder(source.getsModifieder());
		target.setdModifiedDate(source.getdModifiedDate());
		target.setiState(source.getiState());
		target.setiIndex(source.getiIndex());
		target.setiVersion(source.getiVersion());

		return target;
	}
	
	/**
	 * 克隆对象
	 * @return OrdersCommentBase
	 */
	public OrdersCommentBase clone() {
		return copy(this);
	}
	
}
